package skdao

import (
	"Cgo/global"
)

type dtDao struct{}

var DtDao = dtDao{}

func (dt dtDao) DeleteBookByBookId(bookId int) error {
	if r := global.DB.Exec("DELETE FROM sk_book WHERE bookId = ?;", bookId); r.Error != nil {
		return r.Error
	} else {
		return nil
	}
}
